﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Member.Model;
using Member.IDAL;

namespace Member.DAL
{
    public class PricesDAL:BaseDAL<Prices>,IPricesDAL
    {

        public Prices isprices(System.Linq.Expressions.Expression<Func<Prices, bool>> WhereLambda)
        {
            List<Prices> list = GetModels(WhereLambda).ToList();
            if (list.Count > 0)
            {
                return list.First();
            }
            return null;
        }
    }
}
